﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace RRD.Controller
{
    class Logger
    {
        public void WriteLog(string text)
        {
            try
            {
                WriteLogFile(text);
            }
            catch (Exception)
            {
                
            }
        }

        private void WriteLogFile(string text)
        {
            try
            {
                using (var sw = new StreamWriter("log.csv",true))
                {
                    sw.WriteLine(string.Format("{0};{1}", DateTime.Now.ToString(), text));
                }
            }
            catch (Exception)
            {
                
            }
        }

        private void WriteLogDB() { }
    }
}
